<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>添加栏目——后台管理</title>
    <link rel="stylesheet" type="text/css" href="<?php echo ADMIN_PUC;?>/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="<?php echo ADMIN_PUC;?>/css/main.css"/>
    <script type="text/javascript" src="<?php echo ADMIN_PUC;?>/js/libs/modernizr.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/ueditor.all.min.js"> </script>
<!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
<!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/lang/zh-cn/zh-cn.js"></script>
</head>
<body>
<include file="Common/top" /> 
<div class="container clearfix">
    <div class="sidebar-wrap">
        <div class="sidebar-title">
            <h1>菜单</h1>
        </div>
        <include file="Common/left" /> 
    <!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="/jscss/admin/design/">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="__MODULE__/cate/lst">栏目管理</a><span class="crumb-step">&gt;</span><span>新增栏目</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form action="" method="post" id="myform" name="myform" enctype="multipart/form-data">
                    <input type="hidden" name="id" value="{$cateres.id}" />
                    <table class="insert-tab" width="100%">
                        <tbody><tr>
                            <th width="120"><i class="require-red">*</i>上级分类：</th>
                            <td>
                                <select name="parentid" id="catid" class="required">
                                    <option value="0">顶级栏目</option>
                                    <volist name="cates" id="vo">
                                    <option <if condition="$vo['id'] eq $cateres['id']">style="display:none;"</if> value="{$vo.id}"><if condition="$vo['parentid'] neq 0">|</if><?php echo str_repeat('-', $vo['level']*8);?>{$vo.name}</option>
                                    </volist>
                                </select>
                            </td>
                        </tr>
                            <tr>
                                <th><i class="require-red">*</i>栏目名称：</th>
                                <td>
                                    <input class="common-text required" id="title" name="name" size="50" value="{$cateres.name}" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th>关键词：</th>
                                <td><input class="common-text" name="keywords" size="50" value="{$cateres.keywords}" type="text"></td>
                            </tr>
                            <tr>
                                <th>描述：</th>
                                <td><textarea name="des" class="common-textarea" cols="55" rows="5">{$cateres.des}</textarea></td>
                            </tr>
                            <tr>
                                <th>栏目类型：</th>
                                <td>
                                <input class="common-text" name="type" size="50" value="1" <if condition="$cateres['type'] eq 1">checked="checked"</if>  type="radio">列表
                                <input class="common-text" name="type" size="50" value="2" <if condition="$cateres['type'] eq 2">checked="checked"</if> type="radio">单页
                                <input class="common-text" name="type" size="50" value="3" <if condition="$cateres['type'] eq 3">checked="checked"</if> type="radio">留言
                                <input class="common-text" name="type" size="50" value="4" <if condition="$cateres['type'] eq 4">checked="checked"</if> type="radio">招聘
                                <input class="common-text" name="type" size="50" value="5" <if condition="$cateres['type'] eq 5">checked="checked"</if> type="radio">车辆列表
                                <input class="common-text" name="type" size="50" value="6" <if condition="$cateres['type'] eq 6">checked="checked"</if> type="radio">荣誉列表
                                <input class="common-text" name="type" size="50" value="7" <if condition="$cateres['type'] eq 7">checked="checked"</if> type="radio">求职表


                                </td>
                            </tr>
                            <tr>
                                <th>栏目级别：</th>
                                <td>
                                <input class="common-text" name="class" size="50" value="1" <if condition="$cateres['class'] eq 1">checked="checked"</if> type="radio">顶级
                                <input class="common-text" name="class" size="50" value="2" <if condition="$cateres['class'] eq 2">checked="checked"</if> type="radio">二级
                                <input class="common-text" name="class" size="50" value="3" <if condition="$cateres['class'] eq 3">checked="checked"</if> type="radio">三级
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>是否PC端：</th>
                                <td><input name="pc" value="1" <if condition="$cateres['pc'] eq 1">checked="checked"</if> type="checkbox"></td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>缩略图：</th>
                                <td><input name="pic" id="" type="file">
                                <if condition="$cateres['pic'] neq ''">
                                    <img src="__ROOT__{$cateres.pic}" height="50" />
                                    <else />
                                    暂无缩略图
                                </if>
                                </td>
                            </tr>
                            <tr>
                                <th>内容：</th>
                                <td><textarea name="content" class="common-textarea" id="content" cols="30" style="width: 98%;" rows="10">
                                    {$cateres.content}
                                </textarea></td>
                            </tr>
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                    <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                                </td>
                            </tr>
                        </tbody></table>
                </form>
            </div>
        </div>

    </div>
    <!--/main-->
</div>
</body>
</html>
<script type="text/javascript">

    //实例化编辑器
    //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
    UE.getEditor('content',{initialFrameWidth:1500,initialFrameHeight:400,});
    


</script>